package lab01;

public class Test10 {
    public static void main(String[] args) {
        int k=0;
        int i=1;
        int j=1;
        String[] array =new String[] {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S",
                "T"};
        for(i=1;i<=8;i++){
            for(j=1;j<=7;j++) {
                System.out.println('\t');
                if (i == 1 && j == 4) {
                    System.out.println(array[k]);
                    k++;
                }
                if (i == 2 && (j == 3 || j == 5)) {
                    System.out.println(array[k]);
                    k++;
                }
                if (i == 3 && (j == 2 || j == 4 || j == 6)) {
                    System.out.println(array[k]);
                    k++;
                }
                if(i==4&&(j==1||j==3||j==5||j==7)){
                    System.out.println(array[k]);
                    k++;
                }
                if(i==5&&(j==1||j==3||j==5||j==7)){
                    System.out.println(array[k]);
                    k++;
                }
                if(i==6&&(j==2||j==4||j==6)){
                    System.out.println(array[k]);
                    k++;
                }
                if(i==7&&(j==3||j==5)){
                    System.out.println(array[k]);
                    k++;
                }
                if(i==8&&j==4){
                    System.out.println(array[k]);
                    k++;
                }
            }
            }
        }
    }

